package resourcefile;

import javax.swing.*;
import java.awt.*;

public class MyFrame5 extends JFrame {
        public MyFrame5(String title){
            super(title);

            //直接显示图片，不经过panel
            PictureView pictureView = new PictureView();
            this.setContentPane(pictureView);
            pictureView.setBackgroundColor(Color.LIGHT_GRAY);
//            pictureView.setImagePath("Java-swing/data/冰之公主.jpg");



//            JPanel root = new JPanel();
//            this.setContentPane(root);
//
//            MyPicture c= new MyPicture();
//            root.add(c);
//
//            c.setPreferredSize(new Dimension(200,200));
        }
}
